<if condition="$index_album[index_album] eq '1'">
                <volist name="index_group_cates" id='val' key='tlist'>
                	<if condition="$tlist == 1">
                    <div class="tab">
                        <ul class="items clearfix">
                            <volist name="val['s']" id='sval' key='ulnum'>
                                <li <if condition="$ulnum == 4">class="cur"</if>>
                                    {$sval.name}
                                </li>
                            </volist>
                        </ul>
                        <div class="tabwrap">
                            <volist name="val['g']" id='gval' key="key">
                                <div class="tabcon clearfix" id="tag{$key}">
                                    <ul>
                                        <volist name="gval['items']" offset="1" length='8' id='gi' key="gikey">
                                            <li>
                                                <a target="_blank" href="{:u('item/index',array('id'=>$gi['id']))}">
                                                    <img title="{$gi.title}" alt="{$gi.title}" url="{:base64_encode($gi['img'])}"
                                                    class="encode_url">
                                                </a>
                                                <p class="price tc fb">
													{$gi.price}
                                                </p>
                                            </li>
                                        </volist>
                                    </ul>
                                </div>
                            </volist>
                        </div>
                        <p class="tr f14 fb cblue">
                            <a class="more" href="{:u('cate/index',array('cid'=>$val['id']))}" target="_blank">
                                查看更多
                            </a>
                        </p>
                    </div>
                    </if>
                </volist>
</if>
<script type="text/javascript">
            function tabs() {
                for (var j = 1; j < 4; j++) {
                    $("#tag" + j).hide();
                }
                $(".items li").click(function() {
                    i = $(".items li").index(this) + 1;
                    $(this).addClass("cur").siblings().removeClass("cur");
                    for (var j = 1; j < $(".items li").length + 1; j++) {
                        $("#tag" + j).hide();
                    }
                    var lis = $($("#tag" + i).children("ul")[0]).children("li");
                    lis.each(function() {
                        var a = $(this).children("a")[0];
                        var img = $(a).children("img")[0];
                        $(img).attr({
                            src: $(img).attr("data-original")
                        });

                    });
                    $("#tag" + i).show();
                });
            }

            $(function() {
                tabs();

                $('#J_GuideFold').bind('click',
                function() {
                    $('#l-j-guide').slideUp(1000,
                    function() {
                        $('#J_GuideExpand').fadeIn("slow");
                    });
                });

                $('#J_GuideExpand').bind('click',
                function() {

                    $('#l-j-guide').slideDown(1000,
                    function() {
                        $('#J_GuideExpand').fadeOut('slow');
                    });
                });

                $('.model-img-list').bind('mouseleave',
                function() {
                    $('.originality').hide();
                });

                $('.model-img-box').bind('mouseenter',
                function() {
                    $('.model-img-msg-num', this).show();

                    var now = $('.originality', this);
                    now.hide();
                    $('.originality').not(now).show();

                }).bind('mouseleave',
                function() {
                    $('.model-img-msg-num', this).hide();

                    $('.originality', this).show();

                });

            });
        </script>